package com.wilmar;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import com.wilmar.config.DynamicDataSourceRegister;
/**
 * @Title: Main.java
 * @Package:com.gethub
 * @Description:这里用一句话描述这个类的作用
 * @date    2018年2月8日 上午10:58:41
 * @version V1.0
 */
@Configuration
@EnableAutoConfiguration
@Import({DynamicDataSourceRegister.class}) // 注册动态多数据源
@ComponentScan("com.wilmar")
@SpringBootApplication
public class Main {
   
    public static void main(String[] args) {
        SpringApplication.run(Main.class, args);
    }
}
